import { defineStore } from 'pinia'

interface ILoginState {
    isLogin: boolean | null // 登录状态,
    showLogin: boolean
}

export const useLogin = defineStore('login', {
    state(): ILoginState {
        return {
            showLogin: false,
            isLogin: uni.getStorageSync('app_token')
        }
    },
    actions: {}
})
